package com.bing.task.v1;

import com.bing.entity.Account;
import com.bing.entity.Note;
import com.bing.entity.Review;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Created by kaibb on 15-11-26.
 */
public class AccountResult {
    private Set<Integer> questions;
    private List<Account> accounts;
    private List<Note> notes;
    private List<Review> reviews;

    public AccountResult() {
        questions = new HashSet<Integer>();
        accounts = new ArrayList<Account>();
        notes = new ArrayList<Note>();
        reviews = new ArrayList<Review>();
    }

    public AccountResult join(AccountResult accountResult){
        questions.addAll(accountResult.getQuestions());
        accounts.addAll(accountResult.getAccounts());
        notes.addAll(accountResult.getNotes());
        reviews.addAll(accountResult.getReviews());
        return this;
    }
    public Set<Integer> getQuestions() {
        return questions;
    }

    public void setQuestions(Set<Integer> questions) {
        this.questions = questions;
    }

    public List<Account> getAccounts() {
        return accounts;
    }

    public void setAccounts(List<Account> accounts) {
        this.accounts = accounts;
    }

    public List<Note> getNotes() {
        return notes;
    }

    public void setNotes(List<Note> notes) {
        this.notes = notes;
    }

    public List<Review> getReviews() {
        return reviews;
    }

    public void setReviews(List<Review> reviews) {
        this.reviews = reviews;
    }
}
